<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Event Handler</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.min.js"></script>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
</head>
<body>
    <div id="app" class="container">
        <form action="done.html" v-on:submit.prevent="handleIt">
            <button type="submit">
                Submit Me!
            </button>
        </form>
    </div>
    <script>
        new Vue({
            el: '#app',
            methods: {
                handleIt: function() {
                    alert('Handled');
                }
            }
        })
    </script>
</body>
</html>